| Einhugur macOS Bridge plugin. |
|
VNInstanceMaskObservation.GenerateScaledMaskForImageForInstancesAsBitmap Method
EXPERIMENTAL Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.
This version returns the image as RawBitmap.
Parameters
- imageRequestHandler
- Reference to the imageRequestHandler.
- index
- Index of the image to get (zero based).
Returns
- RawBitmap
- The returned image as RawBitmap.
Remarks
Note this version is highly experimental since it is not internally going to CGImage and then RawBitmap but it is skipping a step and going straight to RawBitmap. Where the problem is that the Vision framework potentially could return format that we do not support or know about.
See Also
VNInstanceMaskObservation Class